package org.zhangyp.springbootsecurity.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * todo
 *
 * @author ypzhang
 * @since 2025/5/30
 */
@Configuration
public class MyWebAppConfigurer implements WebMvcConfigurer {

    //简单配置启动页面
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("forward:/index.html");
    }
}
